﻿using AutoMapper;
using Core.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Mappers
{
    public class ListResponseProfile<TSource, TDestination> : Profile
    {
        protected override void Configure()
        {
            AutoMapper.Mapper.CreateMap<QueryResponse<TSource>, QueryResponse<TDestination>>()
               .ConvertUsing(new ListTypeConverter<TSource, TDestination>());            
        }
    }                
}
